#ifndef MULTICASTCLASS_H_
#define MULTICASTCLASS_H_

/* Qt4 includes */
#include <QApplication>
#include <QUdpSocket>
#include <QMessageBox>
#include <QObject>
#include <QDebug>
#include <QLabel>
#include <QWidget>
#include <QVBoxLayout>

#ifdef Q_OS_UNIX

	/* BSD-UNIX includes */
	#include <netinet/in.h>
	#include <netdb.h>
	#include <sys/socket.h>
	#include <arpa/inet.h>

#endif

#ifdef Q_OS_WIN

	/* WINSOCK include - it suck as windows >_> */
	#include <winsock.h>

#endif

/* standard lib & io - these are standart for all system */
#include <stdlib.h>
#include <stdio.h>

class MulticastClass : public QObject
{
	Q_OBJECT
	
private:
	QUdpSocket sock;
	quint16 port;
	QLabel *l;
	QWidget *w;
	
public:
	MulticastClass();

public slots:
	void readMulticastPacket();
};

#endif /*MULTICASTCLASS_H_*/
